package com.junxonline.instant.dao.mapper.config;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.junxonline.instant.dao.entity.model.config.Organization;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 系统组织机构表Mapper
 *
 * @author JunX
 * @date 2021-06-30
 */
@Repository
public interface OrganizationMapper extends BaseMapper<Organization> {

    List<Organization> queryChildren(@Param("organizationId") Long organizationId);

    List<Organization> queryList(@Param("ew") Wrapper<Organization> wrapper);

    Organization selectById(@Param("id") Long id);

}
